const getMysql = require('./mysql.js')
const lunbo = async(ctx) => {
    let sql = 'select * from computercollect'
    await getMysql(sql).then(result=>{
         ctx.body= {
            data:[
                {
                    code:200,
                    message:'查询成功！',
                    data:result
                }
            ]
        }
    }).catch(err=>{
        console.log(err);
    })
}
module.exports = lunbo
